module.exports = {
	devServer: {
		open: false,
		host: 'localhost',
		port: 8080,
		https: false,
		hotOnly: false,
		proxy: {
			// 配置跨域
			'/api': {
				target: 'https://ele-interface.herokuapp.com/api/',
				ws: true,
				changOrigin: true,
				pathRewrite: {
					'^/api': '',
				},
			},
		},
		before: (app) => {},
	},
}
